//
//  I_Gym.h
//  YunDongAdmin
//
//  Created by lqq on 2018/9/5.
//  Copyright © 2018年 cloudfighting.com. All rights reserved.
//

#import "I_Base.h"
#import "M_Gym.h"

@interface I_Gym : I_Base

/**
 请求门店列表
 */
+ (NetworkTask *)requestGymListOnSuccess:(void(^)(NSMutableArray *gymList))successBlock failure:(ErrorBlock)failureBlock;





/**
 搜索健身房
 */
+ (NetworkTask *)searchGymByAddress:(NSString *)address
                            gymName:(NSString *)gymName
                               city:(NSString *)city
                           latitude:(CGFloat)latitude
                          longitude:(CGFloat)longitude
                            success:(void(^)(NSArray *list))successBlock
                            failure:(ErrorBlock)failureBlock;

/**
 管理员创建/修改健身房
 */
+ (NetworkTask *)editGymByAdmin:(M_Gym *)gym success:(void(^)(void))successBlock failure:(ErrorBlock)failureBlock;



/**
 品牌和健身房信息设置
 */
+ (NetworkTask *)creatBrandAndGymWithBrandName:(NSString *)brandName
                                  BrandCreator:(NSString *)brandCreator
                                           gym:(M_Gym *)gym
                                       success:(void(^)(void))successBlock
                                       failure:(ErrorBlock)failureBlock;
@end
